From: Jonas Dreßler Date: Mon, 20 Jan 2020 14:27:26 +0000 (+0100) Subject: st/entry: Add css class name to hint-text label X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~138 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=49170585b319289915d49e44b0350120ee30b0b1;p=gnome-shell.git st/entry: Add css class name to hint-text label Allow styling the hint text of the entry using css easily. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/944 --- diff --git a/src/st/st-entry.c b/src/st/st-entry.c index 741ba90ff..ba3d1ca60 100644 --- a/src/st/st-entry.c +++ b/src/st/st-entry.c @@ -1092,6 +1092,8 @@ st_entry_set_hint_text (StEntry *entry, g_return_if_fail (ST_IS_ENTRY (entry)); label = st_label_new (text); + st_widget_add_style_class_name (label, "hint-text"); + st_entry_set_hint_actor (ST_ENTRY (entry), CLUTTER_ACTOR (label)); }